package com.bw.liveplay.common.mvvm.mondel

import com.bw.liveplay.common.entity.BaseEntity
import com.bw.liveplay.common.entity.ComFeedEntity
import com.bw.liveplay.common.entity.CommentEntity
import com.bw.liveplay.common.entity.HomeFeedEntity
import com.bw.liveplay.common.network.Api
import com.bw.liveplay.common.utils.ApiService
import io.reactivex.Observable

/**
 * @author KK
 * @description:
 * @date :2021/11/13 9:54
 *
 */
class CommentListModel : BaseModel() {

    //评论列表
    fun requestCommentList(id:Int,
                           itemId:Long,
                           pageCount:Int,
                           userId:Int) : Observable<BaseEntity> {
        val homeOB : Observable<CommentEntity> = ApiService.instance().getRetrofit()!!
            .create(Api::class.java)
            .requestCommentList(id, itemId, pageCount, userId)

        return changeFun(homeOB)
    }

}